package com.cedric.yixianpai.game.cards.SubProfession.LianDanShi.JinDan;

import com.cedric.yixianpai.game.Status.DuelStatus;
import com.cedric.yixianpai.game.interfaces.DanShiCard;

public class ShenLiDan extends DanShiCard {
    private int addAttack=0;
    /**
     * title: 神力丹
     * effect: 获得1/2/3层加攻-消耗
     */
    public ShenLiDan(int lvl) {
        super("神力丹");
        this.setLevel(lvl);
        if (1 == lvl) {
            this.addAttack=1;
        } else if (2 == lvl) {
            this.addAttack=2;
        } else if (3 == lvl) {
            this.addAttack=3;
        } else {
            throw new RuntimeException("Card Level Error!");
        }
    }

    @Override
    public boolean effect(DuelStatus Sta1, DuelStatus Sta2) {
        Sta1.getPlayerBuff().addAttackAdd(this.addAttack);
        return true;
    }
}
